package com.dongpu.springboot.rabbitmq.pojo;

import com.dongpu.springboot.rabbitmq.utils.SvcUtil;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import lombok.Data;

/**
 * @author biyuyang
 */
@Data
public class Address implements Serializable {

	private static final long serialVersionUID = -8072053650952806396L;

	@ApiModelProperty(value = "数据库id(创建地址不传,更新地址必传)")
	private String rsId = SvcUtil.getUUID();

	@ApiModelProperty(value = "国家标识,区分港澳台,国际,大陆")
	private String countryFlag;

	@ApiModelProperty(value = "接口类型", example = "create")
	private String interfaceType;

	@ApiModelProperty(value = "国际下单 地址默认标识")
	private String isDefaultInternation;

	@ApiModelProperty(value = "收/寄件人姓名", required = true)
	private String customerName;

	@ApiModelProperty(value = "国家编号", example = "CN")
	private String countryId = "CN";

	@ApiModelProperty(value = "省份编号", required = true)
	private String provinceCode;

	@ApiModelProperty(value = "市区编号", required = true)
	private String cityCode;

	@ApiModelProperty(value = "县级编号")
	private String areaCode;

	@ApiModelProperty(value = "详细地址", required = true)
	private String address;

	@ApiModelProperty(value = "手机号码", required = true)
	private String mobile;

	private String rsType;

	@ApiModelProperty(value = "是否默认")
	private String isDefault = "0";

	private String openId = "";

	private String appId = "";

	private String countryName;

	//省名
	private String provinceName;

	// 市名
	private String cityName;

	// 区名
	private String areaName;

	@ApiModelProperty(value = "经度")
	private String lon = "";

	@ApiModelProperty(value = "纬度")
	private String lat = "";

	private String updateTm = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());

}
